<template>
    <view class="">
        <web-view :src="curl" v-if="token"></web-view>
    </view>
</template>

<script>
import {
	hanleToken
} from '@/utils/utils.js';
import { mapState } from 'vuex';
import config from '@/utils/config.js';
export default {
	data() {
		return {
			baseUrl: config.webHeader + '/chat/#/',
			token: hanleToken('get', 'token') || '',
			deviceId: '',
			name: '',
			projectName: '',
			serviceName: '',

		};
	},

	computed: {
		...mapState('user', ['userinfo']),
		curl() {
			return this.baseUrl + `?token=${this.token.replace(',',' ')}`;
		}
	},
	onHide(res) {
		console.log('onHide........', res);
		uni.navigateBack();
	},
	async onLoad(os) {
		 
	},
	methods: {

	}
};
</script>

<style></style>
